<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>list</title>
	<hdjs/>
</head>
<body>
<div class="wrap">
	<div class="menu_list">
		<ul>
		    <li><a href="{|U:'index'}"  class="action">答案列表</a></li>
		    <li><a href="{|U:'add'}">添加答案</a></li>
		</ul>
	</div>
<form method="post">
	<table class="table1 hd-form">
		<tr>
			<td class="w100">答案分类</td>
			<td>
				<select name="cid" class="w150 h30" style="text-align:center;">
					<option value="0">全部</option>
					<list from='$cat' name='$c'>
					<option value="{$c.cid}">{$c.catname}</option>
					</list>
				</select>
			</td>
			<td></td><td></td>
		</tr>
		<tr>
			<td>AID</td>
			<td>答案</td>
			<td>发布时间</td>
			<td>操作</td>
		</tr>
		<list from='$data' name='$d'>
		<tr>
			<td>{$d.aid}</td>
			<td>{$d.answer}</td>
			<td>{$d.atime|date:'Y-m-d H:i:s',@@}</td>
			<td><a href="{|U:'Answer/edit',array('aid'=>$d['aid'])}">编辑</a> |
				<a href="{|U:'Answer/del',array('aid'=>$d['aid'])}" onclick="return confirm('确定删除？')">删除</a> |
				<a href="">查看</a>
			</td>
		</tr>
		</list>
	</table>
</form>
<div class="page1">
	{$page}
</div>
</div>
</body>
</html>